package io.renren.modules.app.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * ClassName: ScanCodePayOrderForm
 * Author:   WGG
 * Date:    2022-12-2022/12/17-20:40
 * Version: 1.0
 * Description:
 */
@Data
@ApiModel(value = "收款码付款的表单")
public class ScanCodePayOrderForm {
    @ApiModelProperty(value = "付款码")
    @NotBlank
    @Pattern(regexp = "^1[0-5][0-9]{16}$|^(25|26|27|28|29|30|)[0-9]{14,22}$|^622[0-9]{16}$",message = "不符合正则表达式")
    private String authCode;

    @ApiModelProperty(value = "订单id")
    @Min(1)
    private Integer orderId;
}
